package m.jclecai.com.adapter.holder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import m.jclecai.com.R;
import m.jclecai.com.bean.Response.ResNewsList;

/**
 * Created by ZD on 2017/7/19.
 */

public class NoticeHolder extends RecyclerView.ViewHolder {

    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_time)
    TextView tvTime;


    public NoticeHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }

    public void init(ResNewsList.NewsBean newsBean) {

        tvTitle.setText(newsBean.getTitle());
        tvTime.setText(newsBean.getTime());
    }


}
